import Entity from './entity'

export default class Suite extends Entity {
    constructor(db) {
        super(db, 'suites')
    }

    async getAllSuitesByPage(page) {
        const list = await this.find({ page }, { sort: { create_at: -1 } })
        return list
    }

    async getAllSuites() {
        const list = await this.find({}, { sort: { update_at: 1, create_at: 1 } })
        return list
    }
}